import { createRouter, createWebHistory,createWebHashHistory } from 'vue-router'

//概述
import bigDataCourt from '@/views/bigDataCourt/index.vue'
//庭审
import trial from '@/views/trial/index.vue'
import deliver from '@/views/deliver/index.vue'

const routes = [
  // {
  //   path: '/',
  //   name: 'Login',
  //   component: Login
  // },
  // {
  //   path: '/',
  //   name: 'Login',
  //   component: About
  // },
  { path: '/', redirect: '/all' },
  {
    path: '/all',
    name: 'all',
    component: bigDataCourt
  },
  {
    path: '/trial',
    name: 'trial',
    component: trial
  },
  {
    path: '/deliver',
    name: 'deliver',
    component: deliver
  },
  
  // {
  //   path: '/Index',
  //   name: 'Index',
  //   component: Index
  // },
  // {
  //   path: '/about',
  //   name: 'About',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  // }
]

const router = createRouter({
  // history: createWebHistory(process.env.BASE_URL),
  history: createWebHashHistory(),
  // createWebHashHistory
  routes
})

export default router
